package org.jeecg.modules.supplier;


import org.jeecg.common.api.vo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/testw")
public class TestTw {


    @GetMapping("/getTestDate")
    public Result getTestDate() {

        List<Userss> list = new ArrayList();

        for (int i =0 ; i< 100; i++) {
            Userss userss = new Userss();
            userss.setAge(new Integer(i).toString());
            userss.setName(new Integer(i).toString());
            list.add(userss);
        }
        return Result.ok(list);
    }


    class Userss {
        private String name;
        private String age;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getAge() {
            return age;
        }

        public void setAge(String age) {
            this.age = age;
        }
    }
}
